//
//  KYServer.h
//  KYAnalytics
//
//  Created by 罗新 on 2017/10/16.
//  Copyright © 2017年 kuaiyan. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface KYServer : NSObject


/**
 根据appkey上传用户设备信息

 @param appkey appkey
 @param successBlock 成功回调
 @param failureBlock 失败回调
 */
+ (void) postUserDeviceInfoWithAppkey:(NSString *)appkey
                              success:(void(^)(NSDictionary *dataDict))successBlock
                              failure:(void(^)(NSString *failureStr))failureBlock;

/**
 根据IP请求地址信息

 @param successBlock 成功回调
 @param failureBlock 失败回调
 */
+ (void) requestAddressDataSuccess:(void (^)(NSDictionary *dataDict))successBlock
                           failure:(void(^)(NSString *failureStr))failureBlock;
@end
